[Static Runtime] Added nested prim::fork and aten::wait test case (#79746)
Summary:
- Added test case for code coverage of fork and wait operator scenarios
- Nested fork operations and their corresponding wait calls
Differential Revision: D37221551
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79746
Approved by: https://github.com/tenpercent