ringbuffer_extend() for adding extra space to the last added entry