Simple user-space spinlock implementation.