implementation of FIFO spinlocks