Fix compilation errors

Code ported from 7_2_X broke compilation, probably because atomic_TClass_ptr is not found anywhere in ROOT6.
This fixes the compilation errors.
Please merge promptly.