Your reasoning would hold if you could assume identical skill distributions between men and women graduates. However, it seems somewhere between possible and likely that women graduates are of higher average skill than the men graduating. With so many barriers and cultural impedances for a woman pursuing tech, it takes at least the same skill (to pass the classes) as their male classmates, plus enough extra competency to ward off the detractors and skeptics that men don't have to deal with.
Again, I'm not saying this is reality, I certainly don't have the statistics to back it up. But it fits my experiences pretty well, and I think your analysis probably is too simplistic to be useful.
And, in regards to your second point, about starting much earlier: I absolutely agree. The more the culture changes, the less this will be an issue.
i.e. the culture not only makes it harder for women to get through learning compsci, but they'll also have less exposure to it in the process. This could potentially make them weaker candidates.
I don't know to what degree that actually happens.
The problem starts even before formal education. In the country I was raised in, young women get an education which can be summarized by "get a husband to take care of you, cook and have his children". As long as parents have this mentality, their girls get no incentive to continue with college or anything technical, because this path is unknowingly inhibited since childhood. Most developed countries rely heavily on imported workforce, so a lot of Yahoo's and Google's employees come from countries where the percentage of women graduating in tech is far less than the 18.2% of women graduating in the US.