The BGE needs to use BKE_main_new() isntead of calloc for allocating a Main struct since the threaded depsgraph changes.