Async/CUDA/`sort`: * Add missing include of logical metafunctions. * Use `operator&` instead of `addressof` in a place where we want to allow smart   pointers.
Async/CUDA/`sort`:
* Add missing include of logical metafunctions.
* Use `operator&` instead of `addressof` in a place where we want to allow smart
  pointers.

Bug 2379510

thrust/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrust,andrewcorrigan/thrust-multi-permutation-iterator,thrust/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrust,thrust/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust