This part does not authorize a claim for preventive relief against the department, an employee of the department or of any other agency, agent, employee or officer of this state if the claim is brought by a person housed in a facility operated by the department and the claim accrued while the person was housed in the facility.