Add memory order for atomic operations