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