Welcome to the real world.....Every nation do that...even India wasn't and won't be any challenge to US, still they held back critical technologies just to slow down our growth in technology.
Dial down the emotions and look at things from neutral point of reference.
Pakistan should start asking China to get you involved in its cutting edge research and knowledge transfer. Take the best advantage out of them instead of relying on them to supply you end product. If you get the basic technology, you can accelerate the deelopment according to your requirement and it will also help in increasing self-reliability.
That's why I am saying change in approach. If Pakistan start tilting towards US and India, China may even relax the term more....you are their gateway to Gulf. Use it, try to squeeze things without any cost, let the approach of providing them access just for pure emotion of friendship change.....Time to get selfish even w.r.t. China.