Lockdowns are being imposed around the world. China’s example highlights the costs