Riyadh has been accused of using the annual pilgrimage to Mecca as a tool of pressure in its foreign politics.