MASTER REPURCHASE AGREEMENT Among BARCLAYS BANK PLC, as Purchaser and Agent PENNYMAC CORP., as Seller PENNYMAC LOAN SERVICES, LLC, as Servicer and PENNYMAC MORTGAGE INVESTMENT TRUST, as Guarantor Dated as of September 14, 2015