[jit] Include call stack in OSError message (#34669)
Summary:
Previously there was no indication of why you would get an `OSError` for something (such as the generated methods of a `dataclass`).
](https://our.intern.facebook.com/intern/diff/20426570/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34669
Pulled By: driazati
Differential Revision: D20426570
fbshipit-source-id: 45d63631984fa26a87c03de5523fb10d8abbc6db