Nice to see you believe in enforced speech and that correctly sexing someine as an insult.
Read the article. The idea that you can be punished in prison for deliberately insulting speech is not new.
It's more about maintaining order in a prison than respecting rights, which, by the way are already severely restricted by virtue of the fact that it's a prison.
You can argue, if you like, that somebody with a penis shouldn't be in a women's prison and I would agree with you, but given that they are there, provoking them into violence should not be allowed anymore than provoking any of the women into violence should be allowed.