ipc/msg.c: update and document memory barriers