Fix for bug #3469 CV_XADD failing in clang+nvcc combination