Added memory barriers to mailbox