Why should I bother giving you feedback or input? You’re going to fucking ignore it, anyway.
From the way you described it, the kid deserved it as punishment. Fuck, I got worse punishments than that for doing shit. I WISH only punishment was being locked out for a few minutes. Fuck.
Anyways, yes, it’s also child endangerment. So, yes, you can, and should, call the police or child services if it goes on longer than 20-30 minutes or so.