Section 97. The commissioner may transfer any sentenced prisoner from one correctional institution of the commonwealth to another, and with the approval of the sheriff of the county from any such institution except a prisoner serving a life sentence to any jail or house of correction, or a sentenced prisoner from any jail or house of correction to any such institution except the Massachusetts Correctional Institution, Cedar Junction, or from any jail or house of correction to any other jail or house of correction. Prisoners so removed shall be subject to the terms of their original sentences and to the provisions of law governing parole from the correctional institutions of the commonwealth.