### Godot version

4.2 031aa99

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

When opening any project on the current master I'm randomly getting this crash:
```
CrashHandlerException: Program crashed
Engine version: Godot Engine v4.2.dev.custom_build (031aa99d313ceec7cdb8263957d22cae10de0b95)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[0] mtx_do_lock (D:\a\_work\1\s\src\vctools\crt\github\stl\src\mutex.cpp:91)
[1] std::_Mutex_base::lock (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\mutex:50)
[2] std::unique_lock<std::recursive_mutex>::unique_lock<std::recursive_mutex> (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\mutex:134)
[3] MutexLock<MutexImpl<std::recursive_mutex> >::MutexLock<MutexImpl<std::recursive_mutex> > (C:\godot_source\core\os\mutex.h:122)
[4] ResourceImporterTexture::update_imports (C:\godot_source\editor\import\resource_importer_texture.cpp:93)
[5] EditorNode::_notification (C:\godot_source\editor\editor_node.cpp:584)
[6] EditorNode::_notificationv (C:\godot_source\editor\editor_node.h:118)
[7] Object::notification (C:\godot_source\core\object\object.cpp:800)
[8] SceneTree::_process_group (C:\godot_source\scene\main\scene_tree.cpp:951)
[9] SceneTree::_process (C:\godot_source\scene\main\scene_tree.cpp:1028)
[10] SceneTree::process (C:\godot_source\scene\main\scene_tree.cpp:510)
[11] Main::iteration (C:\godot_source\main\main.cpp:3434)
[12] OS_Windows::run (C:\godot_source\platform\windows\os_windows.cpp:1479)
[13] widechar_main (C:\godot_source\platform\windows\godot_windows.cpp:182)
[14] _main (C:\godot_source\platform\windows\godot_windows.cpp:204)
[15] main (C:\godot_source\platform\windows\godot_windows.cpp:218)
[16] WinMain (C:\godot_source\platform\windows\godot_windows.cpp:232)
[17] __scrt_common_main_seh (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[18] <couldn't map PC to fn name>
```
It happens quite often actually, like once in 3 or 4 runs.

### Steps to reproduce

1. Open a project

### Minimal reproduction project

Doesn't seem project-specific.
cf->set_value("params", "roughness/src_normal", E.value.normal_path_for_roughness);
				changed = true;
			}
			if (E.value.flags & MAKE_3D_FLAG && bool(cf->get_value("params", "detect_3d/compress_to"))) {
				const int compress_to = cf->get_value("params", "detect_3d/compress_to");
				String compress_string;
				cf->set_value("params", "detect_3d/compress_to", 0);
				if (compress_to == 1) {
					cf->set_value("params", "compress/mode", COMPRESS_VRAM_COMPRESSED);
					compress_string = "VRAM Compressed (S3TC/ETC/BPTC)";
				} else if (compress_to == 2) {
					cf->set_value("params", "compress/mode", COMPRESS_BASIS_UNIVERSAL);
					compress_string = "Basis Universal";
				}
				print_line(vformat(TTR("%s: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to %s."), String(E.key), compress_string));
				cf->set_value("params", "mipmaps/generate", true);
				changed = true;
			}
			if (changed) {
				cf->save(src_path);
				to_reimport.push_back(E.key);
			}
		}
		make_flags.clear();
	}
	if (to_reimport.size()) {
		EditorFileSystem::get_singleton()->reimport_files(to_reimport);
	}
}
String ResourceImporterTexture::get_importer_name() const {