Implement read/write spinlocks.