This is even more awful, because will any female victims even dare to complain? They could well be condemned as transphobic troublemakers by the duty manager, if they do complain. I suspect strongly that many wives and partners of prisoners are not able to advocate well for themselves.
Goodness knows, but regular visits are known to help with discipline and mental health in prisons and its also important that convicts maintain relationships with their children.
Many women would just submit to it, rather than be banned from visiting.