China's factories try to shield workers as output revives