Gates visits sultan of Oman