“If [B] were to be re-detained the consequent increased restrictions on his freedom of movement and communication would certainly cause him distress and discomfort. However, it is to be noted that his core mental illness (psychosis) has been manifest both within and without prison settings in the past and he has been able to accept and benefit from treatment for it while in custody.”