Solitary confinement might be too kind to IT (what ever sex it is) as endless hours left to his own enjoyment would have little punishment. Put it in the general population of rapists and violence where he would be in fear.
"Masturbate as little as possible, it drains the strength!"