From Lockheed Martin: https://www.f35.com/about/life-cycle/software
Full report that specifies Block 3F for Navy IOC: https://www.f35.com/assets/uploads/downloads/12994/f-35_ioc_joint_report_final.pdf
The Chinese can build an airframe that more or less copies the F-35. They cannot and will not build an aircraft with comparable avionics and software, and certainly not faster than Lockheed Martin can.
You're right about the Chinese, of course, especially with regard to programming the hardware they can now build.
However, consider what they can now build and apply the methodology behind their success to software. What sized window of advantage are you looking at, rhetorically speaking.
I keep my fingers crossed for US, but this is no way to run a country. More like how great countries decline and fall...and others take their place.