As office vacancies climb to their highest levels in decades with businesses giving up office space and embracing remote work, the real estate industry in many American cities faces a potentially grave threat.