In the West Village and other historic neighborhoods, buyers are consolidating apartments and combining townhomes, a sign of New York’s allure to the ultra-rich.