As Trump turns up the heat on Beijing, China is trying to become more technologically self-sufficient, but its efforts have a significant cost.