[dynamo][eval_frame] Set destroy_extra_state deleter as part of co_extra (#107117)
Using the `freefunc` facility to free the ExtraState objects - https://peps.python.org/pep-0523/
Pull Request resolved: https://github.com/pytorch/pytorch/pull/107117
Approved by: https://github.com/jansel
ghstack dependencies: #106917