AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT dated as of January 22, 2016 among Pennymac Corp., as a Borrower, PENNYMAC HOLDINGS, LLC, as a Borrower, PENNYMAC MORTGAGE INVESTMENT TRUST, as Guarantor, and BARCLAYS BANK PLC, as Lender