“considering the severe mental pain or suffering solitary confinement may cause, it can amount to torture or cruel, inhuman or degrading treatment or punishment when used as a punishment, during pre-trial detention, indefinitely or for a prolonged period, for persons with mental disabilities or juveniles,” he warned.