Update FSDP non-rank-0 missing keys test after #45649 (#50260)
* Update FSDP non-rank-0 missing keys test after #45649
#45649 stopped materializing parameters on FSDP non-rank-0 processes: they
stay on meta since rank 0 broadcasts them, and only non-persistent buffers
get CPU placeholders. The test still asserted every parameter lands on CPU.
Check the new contract instead, with a persistent and a non-persistent
buffer on a submodule.
* Patch is_local_dist_rank_0 where modeling_utils looks it up
modeling_utils imports is_local_dist_rank_0 by name, so patching it in
transformers.distributed.utils never reached the code under test. The
tests only took the non-rank-0 branch because the real function returns
False when torch.distributed is not initialized.