A regulatory crackdown in Beijing on capital leaving China is threatening the flow of cash into New York’s real estate market.