These five Massachusetts zip codes all saw their median home sale reach at least $2.2 million this year. But one New Hampshire zip code was pricier than all of them.