AMENDMENT NO. 6 TO THE AMENDED AND RESTATED MASTER INVESTMENT ADVISORY AGREEMENT