Ensure meta-class is restored for Class spies

[Fixes #78068472]
Merge pull request #263 from pivotal/fix-spy-on-class

Ensure meta-class is restored for Class spies