Rework spinlocks.