Fixed race condition, negative statistic for the queue and timing for producer and processor