Use timeout for try_lock_until