Replace the main mutex with a spinlock, as I was able to determine that it
pretty much won't make a difference in regard to CPU usage and should
improve low latency operation.