Reduce calls to splx/splhigh and replace them with spinlocks.