FOURTH AMENDMENT TO MASTER REPURCHASE AND SECURITIES CONTRACT AND OTHER REPURCHASE DOCUMENTS