Nothing in Sections 41-21-61 through 41-21-107 shall preclude any patient, his attorney, or relative or guardian from seeking a patient’s release from a treatment facility by application for writ of habeas corpus; provided that the application shall be made to the chancellor of the county in which the patient is hospitalized. Provided, further, that if the patient is hospitalized at the Mississippi State Hospital at Whitfield, Mississippi, the said application shall be made to a chancellor of the First Judicial District of Hinds County, Mississippi.