A simple user-space spin-lock implementation.