Simple memory pool ring buffer in C with Go wrapper