[FSDP] Test `named_parameters()` in forward (`use_orig_params=True`) (#89066)
This adds a unit test following the FSDP change in https://github.com/pytorch/pytorch/pull/88781.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89066
Approved by: https://github.com/fegin