Volunteers and government workers in Shanghai erected metal barriers in multiple districts to block off small streets and entrances to apartment complexes, as China hardens its strict “zero-COVID” approach in its largest city despite growing complaints from residents.