I think biology makes it very difficult to see everyone as essentially human-fungible and not as (even a little bit) their gender. It is extremely difficult to stay genderblind (dear non-cisgender people: I'm really sorry. It seems like a very hard path.) So I think you're going to get in-group and out-group type phenomenons across professions with asymmetric gender membership, regardless. The problem of course is when those become oppressive.
I don't know what the easy way out of this problem is. Sensitivity training? Simply trying to have more friends of both genders so you can get more perspective and therefore have more empathy and less... toxicity?