[functorch] Remove not needed named member polyfill functions (#92613)
The `nn.Module` APIs already support `remove_duplicate` argument. It's time to retire these not needed polyfill functions. They are identical to the `nn.Module.named_parameters` and `nn.Module.named_buffers` methods.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92613
Approved by: https://github.com/ezyang, https://github.com/malfet