[analyzer][NFC] Add tests for and refactor StackAddrEscapeChecker 1/3 (#105652)
These tests and refactoring are preparatory for the upcoming changes:
detection of the indirect leak via global variables and output
parameters.
CPP-4734
-------
This is the first of three commits constituting
https://github.com/llvm/llvm-project/pull/105648