inference: exclude uncached frames from callstack (#57743)
This is more consistent with how it is handled recursively and removes
confusion here where the LimitedAccuracy could appear to happen from the
top-level uncached frame. I was unable to make a reduced test-case
showing this failing.
Fixes #57634