Finish porting the code to the new lockfree queue.