Revert "[libc++] Simplify the implementation of iterator_traits a bit" (#246517)
Reverts llvm/llvm-project#222297, since it causes a conformance regression
for C++17 iterators that don't have all of the `difference_type`, `reference`
and other members.