[dev-overlay] Inject `get*Stack` implementation (#79789)
The stitched-errors module will live in a different layer than the dev-overlay.
In that future we need to pass the `get*Stack` implementations to the dev-overlay.
Right now it's not meaningful but makes future diffs smaller.