sys: lib: introduce ringbuffer_remove()

This commit adds a function that deletes n elements from the ringbuffer
without actually writing them somewhere.
```c
n = rb->avail;
rb->start = rb->avail = 0;
return n;
```