Fix up `BatchingQueue` implementation.