Serialize wimlib_global_init() and wimlib_global_cleanup()