Working ring-buffer-seq implementation.