Any power conferred by or under any enactment to release a person from a prison or other institution to which the Prison Act applies may be exercised notwithstanding that he is not for the time being detained in that prison or institution and a person released by virtue of this section shall, after his release, be treated in all respects as if he had been released from that prison or institution.