The Commissioner shall not order the arrest or detention in the civil prison of- (a) a woman, or (b) any person who, in his opinion, is a minor or of unsound mind. ...