Need opinions

Okay ladies I've been reading recently about how mothers are boasting about when trying to get their children to sleep in their beds at night they switch the knobs on the door so they can be locked on the outside. Hence your child is locked in the room and can't come out. What are your thoughts on this? It honestly broke my heart seeing how many mothers were okay with this. My parents were always welcoming if we needed to sleep with them do to nightmares or just wanting cuddles and what not. I DON'T agree with it one bit and I feel as though that would scare the child tremendously and also would be dangerous to lock them in a room by themselves. What do you ladies think about this?