Windows: use interlocked increment on cm_buf_t refcnt