Having endured three years of rising vacancy and shrinking rents, owners of office buildings in the nation’s largest cities are now facing their biggest test as they try to hold on to their buildings in the face of falling valuations that can no longer support the multimillion-dollar mortgages tied to their properties.