Fix crash on Windows when dumping admin cache to file.

We had another similar issue fixed recently. The crash stems from passing a FILE * between different CRT copies, core and logic each having their own statically linked copies.