Add datarace support for atomics and calloc