The people in the decision-making positions need to be thinking differently about who to hire, and looking more unsparingly at their choices. Why give this person a break over that person? Why give this person a second chance over that person? I do think that's where gender comes into play.
I think there is really something we need to examine about the notion of careers, and are women encouraged and given the same opportunities to have vital healthy careers in which they are challenged by certain things, they try new things, they struggle, maybe they stumble, maybe they fail, and then there's more room to succeed as well.