Fixed thinko in ringbuffer.c
test_ringbuffer.c has support for a pthread test now.

Naturally, it crashes mysteriously.