Memory ordering and thunk update