[aot] fixing up cherrypicked of AOT class allocation leak fix
fixing cherrypicked d530d836
Merge pull request #138 from Unity-Technologies/ios/fix-aot-class-leak

Ios/fix aot class leak