ringbuf: support asynchronized ring buffer