I am going to be recommencing lifting seriously in about a month, and I completely understand where you are coming from. 99% of the gyms are not PROPER gyms, but health clubs designed to suck people in quick, and generate as much income up front as possible to deal with the high turnover rate.
I recently walked into a 24 hour fitness, and this big kid had me sign release forms as per usual and escorted me around the free weight area. We began talking and it became painfully obvious that whatever he had done to get to the way he looked, was as much or more due to genetics, than actual practical and effective training knowledge. Eventually he escorts me back to their sell area, wherein he tries to sell me, doing his best to convince me to plop $200 bucks down, for the cheapest monthly membership rate. When I asked what their turnover rate was, he got really pissy and the pleasantries abruptly ended. I grinned and walked out.
Anyhow, digression aside, most gyms are either hangouts for hookups, places for people that know little about training to maintain basic health, or places full of guys whose heads are filled with so much muscle mag garbage that you'd be hard pressed to glean much useful information out of them, other than the latest way to take a selfie while chugging the newest, super optimized, NOS-blended mega protein.
So ya, I feel ya. I just plug the headphones in, and do my thing. I am not averse to talking to people in the gym, if they are friendly, have an actual desire to train productively, and don't intrude during actual sets, but sadly, these types of people are a small percentage of most club memberships.
Nowadays I don't listen to much rap anymore, or even heavy metal, but when I train, I definitely put my game face on and prefer music that helps, or at least doesn't inhibit aggression. I consider the barbells my dangerous friends, friends that can help, but only if shown the proper respect, while simultaneously being willing occasionally tell them what's what when necessary.