Add timewait ability.

For attempting to lock lasted for a specific time, use the -w option
(--wait) setting the time in seconds.