place memory barrier after write in order to enforce proper ordering semantics