It almost sounds like you're saying that increased gender equality is bad for religion.
Edit: there was a study that came out ago that predicted the "extinction" of religion is a number of countries: Study Finds Religion May Be Going
One of the assumptions they used for their model is that social benefit has a significant effect on religious observance: the more a person gets from the fact they go to church, the more likely they are to go. In their model, there ended up being a tipping point: when a society got to the point where religious observance stopped giving people benefit in terms of things like social status or material advantage, religious adherence dropped dramatically. This had a feedback effect, since the fewer people in a religion, the less benefit the members get from belonging to it, which causes more people to leave, and so on.
Although I wouldn't mind seeing the extinction of religion, I don't think the study was all that great. It made some assumptions about how quickly people would convert to atheism that probably can not hold water. On the other hand, the basic premiss that people are religious for social reasons seems fairly accurate of a lot of people.