The provisions of N.C. Gen. Stat. § 15-10.2 and 15-10.3 shall not apply to any prisoner who has been transferred and assigned for observation or treatment to any unit of the prison system which is maintained for? those prisoners who are mentally ill or are suffering from mental disorders. (1957, c. 1067, s. 3.)