Millions of people are confined largely to their residential compounds in an effort to contain outbreaks under the country’s “dynamic Covid-zero” strategy.