AMENDMENT NO. 2 AND JOINDER TO MASTER REPURCHASE AGREEMENT