Correcting the spin lock implementation.