Tweak the way some iterators are computed in stable_sort_each to avoid nvcc losing track of their __shared__-ness.