Homeowners insurance has traditionally been a background cost of owning a home, but in many markets, it is becoming a defining factor in housing affordability.