Such persons cannot be allowed to languish indefinitely in mental health institutions after recovery, observes court