MASTER REPURCHASE AGREEMENT among PENNYMAC HOLDINGS, LLC (“Seller”) and PENNYMAC LOAN SERVICES, LLC (“Buyer”) and PENNYMAC MORTGAGE INVESTMENT TRUST (“Guarantor”) Dated as of December 19, 2016