Global consulting company Bain said one of Shanghai’s top Communist Party officials visited its office in the city.