An ordered spinlock implementation