AMENDMENT NUMBER FOUR to the AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT Dated as of March 3, 2017, by and between PENNYMAC LOAN SERVICES, LLC and CITIBANK, N.A.