Upon receipt of the warrant, the secretary shall, until infliction of the death penalty or until lawful discharge from custody, keep the inmate in solitary confinement. During the confinement, no person shall be allowed to have access to the inmate without an order of the sentencing court, except the following:
(1) The staff of the department.
(2) The inmate's counsel of record or other attorney requested by the inmate.
(3) A spiritual adviser selected by the inmate or the members of the immediate family of the inmate.
61 Pa.C.S. § 4303