AMENDMENT NO. 3 AMENDED AND RESTATED MASTER INVESTMENT ADVISORY AGREEMENT