I completely understand your concern. We moved because of our jobs when DS was in 2nd grade. We moved from a very good district to another very good district. What we found was that both are lacking in gifted education, just in different ways. :-( Gifted education is definitely hit or miss as you move from one place to another.
But I want to offer just a couple of thoughts. First, as your hubby gets a job in a university, your family will live near a university and your kid will live go to a school where lots of parents work at the university. These people usually care a lot of education. What we found is that things are easy if the families in the school share similar values. In our school, parents offer an incredible array of academic opportunities that the school is not able to offer.
Another point that I want to make is that best friends don't have to have similar IQs. And as kids grow, friendships shift a lot. DS had a great friend for years who shared with DS a love for music and a serious pursuit for knowledge, but they are very different in favorite subjects, mode of learning and innate abilities (they are not as close anymore since they now go to different schools). DD has a best friend who is incredibly kind and sweet, but the two don't share much in intellectual pursuit. So I wouldn't worry about this if your family ends up in a community with a lot of families who care about education.