Small buffer method rename again.
Fixed bug where the ring-buffer was not circular, and made calls operating on elements_in_buffer and start_buffer thread-safe.