I want to use the `withTimeout` to wait for a lock to be unlocked, but only until a particular timeout.