Musk’s control of key technologies has made him an independent actor on the global stage—except in China.