MORGAN STANLEY PATHWAY FUNDS THIRD AMENDED AND RESTATED MASTER TRUST AGREEMENT December 17, 2018