Residents in thousands of Beijing tower blocks are ordered to remain indoors as workplaces shut down.