[asan] Modify ASan metadata atomically.

We need this to avoid races when ASan and LSan are used together.