nv50/ir: implement global atomics and handle it for nir