ringbuf: Implement DoubleEndedIterator