In this Act (1) "prison" means any jail or place used permanently or temporarily under the general or special orders of a [Provincial Government] for the detention of prisoners, and includes all lands and buildings appurtenant thereto, but does not include (a) any place for the confinement of prisoners who are exclusively in the custody of...