Should Parents Ever Lock a Child in a Room to Fall Asleep?

Playing

The Doctors discuss how actress Kristen Bell reportedly locked her child in her room in order for her to fall asleep. Is this a tactic that parents should use or avoid?