Otherwise the loop inside spinlock_acquire will turn into an eternal loop when optimizations have been turned on.