SECOND AMENDMENT TO AMENDED AND RESTATED MASTER REPURCHASE AND SECURITIES CONTRACT