Use a kernel based spinlock instead of my own spinlock to reduce bus traffic
when waiting for worker threads to finish the current buffer.