It is/was used only in American prisons and, I believe, it applied whenever a condemned man was being walked anywhere throughout the prison rather than just to his execution...eg to the prison hospital, to meet his lawyer and so on.
The idea was that he had priority and others should get out of the way, the grotesque implication being that he was, in effect, already 'dead'!