At the risk of sounding like a stuck record--once an outbreak is seeded, lockdown alone will not get rid of the virus, because it will just continue to circulate around essential workplaces and people's homes.
China was able to get rid of COVID because in addition to lockdown they also did out-of-home quarantine, where infected people and even their contacts were forcibly quarantined in hotels and other empty facilities.
I personally think out-of-home quarantine is not so bad, but I've suggested it on here several times and people are overwhelmingly very very against it and probably would not comply anyway. And without OOH quarantine, no amount of lockdown alone will eliminate the virus from a country.
I still don't fancy being in China long term. If they ever want to open up their borders, they will have to accept some spread of the virus, but it's going to psychologically difficult to do that because so much time and energy has gone into elimination and because the population is now so frightened of the virus. And the extreme surveillance that the CCP has brought in to manage the situation will not be disbanded---it will continue to be used to crush political dissent and imprison dissenters and their families.
I used to live in Hong Kong. Now, Hong Kong will become just another part of "regular China" very soon--it's already well on the way. A glorious future under the care of the world's champion virus-crusher awaits! Who wouldn't be radiant with joy at such a prospect? Well.... Hong Kongers, mostly, from the looks of it. Those who can are trying to flee the place while they can, with a significant number planning to come over to the UK. COVID is not a nice virus, but I find myself thinking that "There are worse things than COVID in this world."