Developers have run up huge debts. Now home sales are down, Beijing is imposing borrowing curbs and buyers are balking at high prices.