You have to keep people there first. Or its never going to work. They have to want to be there. And they have to have something to lose. Sometimes having another option is not viable.
If they want to be there, they wouldn't be trying to leave. The timed gate you propose is nothing to them...
But people who no longer want to be there? It is those who you'd be locking in.
Try again, padawan.