Oh ... do you think that being locked in a pitch black room for a few hours is worse than being locked up with a bunch of racist gang members who continue their criminal activities while on the inside for several years?
You’ve picked a ridiculous comparison/contrast to hang your hat on ...
and IMHO, you’re drastically missing the point. If you don’t like ad-hoc inappropriate discipline then enable real, meaningful, appropriate discipline. Or enable the simple removal from the classroom of incorrigible troublemakers.
I seriously doubt the that children who got locked in the boiler room were perfect, innocent little angels.
I’m not even going to list all of the logical fallacies you just committed.
Instead, let me ask you: What would an 8 year old boy have to do in order for you to lock him in the dungeon?