Fix another bug in the ringbuffer free space calculations
Ringbuffer should report the number of items that can be placed in the buffer, not the actual size of the buffer.