Simple portable lock-free single-reader/single-writer FIFO