The eye-watering price of a home in Brooklyn Heights marks a record for the borough that was once an alternative to Manhattan’s luxury market.