Signs of pressure on New York City’s commercial properties are fueling investor bets that trouble in the nation’s largest real-estate market could spread pain nationwide.