Tide turns against schools as foreclosures rise