Implement Send and Sync for RingBuf.

Proposed fix for https://github.com/rust-lang/rust/issues/20337.