Suit shows classifying inmates ‘male’ vs. ‘female’ isn’t always simple