fix pinnedMem bug for CUDA thread overlapping