when she turned thirteen , the court had decided , under laws governing the guardianship of minors , that she should be entrusted to the locked ward at st. stefan 's psychiatric clinic for children in uppsala .