China wants to wean itself off foreign technology. Now it will see how hard that will be