Anyone can file a request, but the request must be approved, and this is based on the totality of the situation with the prisoner. Someone doesn't get to just wake up one day and go "I'm trans" and automatically get approval, this is fearmongering from transphobes.
There's tons of oversight involved and the idea this is some kind of "loophole" for horny cis guys is bigoted nonsense.