The detente between Tehran and Riyadh last week was all the more surprising because of the third party serving as mediator: China. China - a long-time partner of Iran that counts Saudi Arabia as its biggest source of foreign oil - played host to a deal to ease years of diplomatic deadlock between the Middle East rivals.