AMENDMENT NO. 2 TO THE SECOND AMENDED AND RESTATED TERM LOAN AGREEMENT