As Elon Musk grew Tesla’s business in China, he publicly cozied up to its leaders on his favorite social media platform.