Shon T'Hara wrote:
Even if we handwave the line away in-universe, it still reflects the mindset of the writers and producers of the third season (admittedly not Roddenberry). The episode on screen comes across as, "Yeah, a woman in command. That's a good one. She gets PMS and we're at war with the Klingons. Ho-ho-ho."
Well, at least it reflects the mindset of Arthur H. Singer, who wrote the teleplay to "Turnabout Intruder" and was the third-season story consultant. TV shows back then weren't as staff-driven as they are today, so it's anachronistic to assume there was a whole legion of writer-producers shaping the entire season. And on ST's third season in particular, there wasn't much of a coherent creative vision guiding the whole thing.
But Roddenberry himself wrote the story outline for "Turnabout Intruder"
-- it's one of the only two episodes he had a writing credit on in season 3 -- and his outline was pretty much the same as the final episode, and indeed had a tag that was even more sexist.