Hundreds of flights at one of China's busiest airports were cancelled and residential communities placed under lockdown, as Shanghai races to bring a local coronavirus outbreak under control.