Let TensorIterator::nullary_op support check_mem_overlap option (#38693)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38693
Test Plan: Imported from OSS
Differential Revision: D22291237
Pulled By: VitalyFedyunin
fbshipit-source-id: 5bc96e617ed36ed076da73e3d019699f2efd6e4e