AMENDMENT NO. 1 TO SECOND AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT