ringbuffer: added resize() and pop() methods

this is needed to support SENSORIOCSQUEUEDEPTH in drivers
hmc5883: use a RingBuffer to hold report queue

this simplifies the queue handling, and avoids the need for a
start()/stop() on queue resize