Overly restrictive zoning, cautious lending and anti-development politics created a long freeze in housing production.