BEIJING—Roughly this time last year, Beijing was a Covid-19 fortress teetering on the edge of a lockdown. As daily case counts crept up to around 100 in this mega-capital of more than 20 million people, residents cleared out grocery stores, lined up for near-daily testing and postponed travel out …