"penny up the door"

What does "penny up the door" mean? Lock the door?

"To penny the door" means to lock someone in a room by inserting pennies (or other coins) in the narrow gap between the already closed door and the frame.