Thinking about things more, the fact that sex segregated prisons seem like such a rape risk implies a problem with society in of itself (ie If we can't trust people to be in mixed prisons without serious problems, our culture has a pretty nasty streak through it).
Are we really supposed to judge society based on the conduct of those society has deeemed so dangerous and lawless that they had to be physically removed from society? Its not society's fault that Jeffrey dahmer murdered people and screwed their corpses.