For much of the past four years, China’s equity markets have been a graveyard of foreign enthusiasm. International investors, once…