sys: rename ringbuffer functions

Closes #1011.