LEGG MASON PARTNERS INCOME FUNDS Amendment No. 12 to First Amended and Restated Master Trust Agreement