[aotinductor] Refactor the generated result (#111080)
Summary: Return the compiled library path as a string instead of wrap it as a callable.
Differential Revision: [D50246941](https://our.internmc.facebook.com/intern/diff/D50246941)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111080
Approved by: https://github.com/jansel, https://github.com/chenyang78