[MTE] [HWASan] support more complicated lifetimes
This allows us to support more lifetimes, and also gets rid of
the quadratic call to isPotentiallyReachable.
Reviewers: pcc, usama54321
Reviewed By: pcc
Pull Request: https://github.com/llvm/llvm-project/pull/182425