The decades-long battle for affordable housing in San Francisco is reaching a breaking point, with dire warnings for the rest of the country.