Keep overrides of the deprecated gradient checkpointing methods working (#50310)
* Keep overrides of the deprecated gradient checkpointing methods as the entry point
Since #49248, Trainer calls activation_checkpointing_enable, so subclasses
and instance wrappers of gradient_checkpointing_enable/disable were skipped.
* Rename _overrides_deprecated_alias to _is_overridden