Margaret of Savoy, Vicereine of Portugal