It has several definitions, one of which, as you noted, is UK slang for a prisoner who has been convicted of a particular kind of crime. That comes from "Not On Normal Communal Excercise" as they are in danger of being attacked by other prisoners.
Here ends the English lesson :)