AMENDED & RESTATED MASTER REPURCHASE AGREEMENT Dated as of November 1, 2017 among KREF LENDING III LLC AND KREF LENDING III TRS LLC as Sellers, and GOLDMAN SACHS BANK USA, as Buyer