Skip `VMStack.getThreadStackTrace()` in stack traces.

Test: Added a check to run-test 051-thread.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 240140214
Change-Id: I14963fe9cc78a1fb5ac4e6624fa824c23cb572d0
4 files changed