The meteoric rise and subsequent crash in the country’s stock market has left investors badly rattled. But the real wake-up call has been the belated effort to sort out local government borrowing and misspending.