China has accumulated trillions in reserves that should help it cope with a massive pile of bad debt.