A nine-year-old boy, drawn to the quiet of Cape Town’s Central Library, fell asleep and found himself locked in after hours.