SECOND JOINDER AND RESTATEMENT AGREEMENT