I've thought about this a lot.
I don't actually think its a tech issue. I think it's a finance issue ?
The finance sector is known for being an old money boys club driven by highly competitive people. The finance's sector honed in to Silicon Valley.
I would argue Silicon Valley's Women problem is due to Finance/Business Culture leaking heavily into Silicon Valley for last decade.