AMENDMENT NO. 7 TO THIRD AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT