The U.S. has been trying to keep its technological lead through export restrictions, but China is closing the gap.