It’s not just rare earths. China is making it harder for other countries to shed their dependence on its solar, drone and drugmaking technology.