[v8.x backport] inspector: Track async stack only when necessary
This is the 8.x backport of #16308 as the version of V8 in 8.x is slightly older than master and some changes were necessary.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
deps:v8, inspector
R= @nodejs/v8 @nodejs/v8-inspector
CI: https://ci.nodejs.org/job/node-test-pull-request/11104/ V8-CI: https://ci.nodejs.org/view/All/job/node-test-commit-v8-linux/1025/