A simple thread-safe FIFO in C.