I think that this misreads how the Chinese solar industry works. It's one of the less government-controlled industries in China. It's fiercely competitive, which leads to low prices, rapid change, and periodic bankruptcies. Chinese-made solar panels became popular for the same reason their T-shirts and microwave ovens became popular: acceptable quality offered at unbeatable prices.
I also think that there's low risk of lock-in from buying Chinese solar products now. Solar panels have a typical operating lifetime about equivalent to 5 years at 100% of rated power. In practice this means something more like 20 years in a solar farm in a very sunny climate or 35 years in a cloudy climate. The steady state replacement rate to maintain a nation's solar capacity is therefore about 3%-5% of the initial installation rate. If China prohibited solar panel exports, Western countries could maintain existing solar farm capacity with only tiny outside-of-China solar manufacturing capacity. There would be plenty of time for not-China countries to determine if the embargo were temporary or persistent before investing in more expensive but more dependable domestic factories.