more thinkos in test_ringbuffer.c

was starting the two threads twice, which didn't help.

One reader, one writer. What could be simpler?
Added core and a.out files to .gitignore
Added test for the rollover portion of the code.
more atomic ringbuffer

This crashes in the pthread test later than the previous one.