Use a timelock instead of a spinlock