main/spice-protocol: make memory barriers portable