[FSDP][optim_state_dict][4/N] Remove the unused _get_flat_param_to_fsdp_module API (#89980)
This is an easy PR, just remove an unused internal API.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89980
Approved by: https://github.com/awgu