RingBuffer concurrency problem almost solved