Change the implementation of spinlocks from test-and-set
test-and-test-and-set.