Add memory barrier

Add memory barrier to ensure previous instruction
is completed.