To be honest, it may have something to do with the boss's method of birth control. My gf is on the pill and she's never really moody during her period. However, she told me that before she started the pill she would get very emotional. I've also known people that quit the pill and I could definitely see that they became more moody at certain times of the month.
I've had both male and female bosses and teachers. I've had male bosses and teachers that were naturally jerks and would be jerks all of the time. The same goes for females. The one thing I did notice about certain females was that they were harder to predict. Some, but not all, had great fluxuations in mood. One day they were on top of the world and the next you couldn't stand to be around them. With the males, I always knew just to avoid the jerks. The males seemed to be more consistent.
I currently have a male boss. I can tell when he's having a good or bad time at home. He doesn't talk about it, which is nice, but you can tell there has been a change in mood. It's just not as great as some of the females that I've seen. I only have four female coworkers in my department at this time and they all seem to be pretty stable mood-wise. One sometimes really annoys me because all she does is talk about her kids. I mean, every little thing about them, but that's as far as she brings her home life into work.