Regarding the gender angle, I'm reminded that the income gap is really between husbands and wives. Unmarried, childless women earn significantly more than unmarried, childless men on average. The primary issue revolves around which parent leaves a career to stay home with children. Career gaps are extremely costly.
If you factor in opportunity cost and lost wages for school years along with compound interest then most degrees will never generate a positive ROI. On average, degrees barely break even with their cost, but some degrees are far more lucrative than others -- meaning other degrees are far below breakeven ROI.
Taking a mid-career break makes it massively harder to overcome the costs related to obtaining a degree. This would be true for either men or women.