A real estate company wants to turn a historic San Francisco office building into housing. History suggests it won't be easy.