A nine-year-old boy fell asleep in Cape Town’s Central Library and woke to find himself locked inside after staff had gone home.