[clang] Rewrite tests relying on shell environment variable features
This patch rewrites a couple tsts that fail when running with lit's
internal shell enabled due to assumptions about setting environment
variables. There were a couple cases where there was an implict env.
Most of the cases needed unset swapped for env -u.
Toeards #102699.
Reviewers: petrhosek, efriedma-quic, Sirraide, carlocab, rnk, ilovepi
Reviewed By: carlocab, rnk, ilovepi
Pull Request: https://github.com/llvm/llvm-project/pull/156904