ringbuf: fix read out of range in Peek()