In parts of the world, children are locked up in prison with their parents when they lack a guardian.