Internal modifications to spinlock implementation.