### Godot version

4.0.x-stable

### System information

Hyprland Arch Linux v0.23.0beta

### Issue description

By simply just creating any file, resource or directory the Hyprland session crashes. It is quite difficult to give more context than that. In the aftermath of the crash, it does spam the message:
```
"!EditorSettings::get_singleton() || !EditorSettings::get_singleton()->has_setting(p_setting)" is true. returning Variant()
at: _EDITOR_GET (editor/editor_settings.cpp:1101)
```
I do not believe that this is the cause of the crash. Because I am not interacting with the editor settings at all.
However, I did get another error message in some of my tests, when the spam stopped
```
Fatal glibc error: pthread_mutex_lock.c:94 (___pthread_mutex_lock): assertion failed: mutex->__data.owner == 0
```
This tells us that something tried to lock a thread but failed. Not sure if that specifically is Godot's side or Hyprland's side.

I would also like to mention I have tried Godot 3.x versions, it works just fine.

This crash might be due to the setup I have or on Hyprland's part.
I would like to briefly mention that Hyprland is a window tile manager, and works similarly to i3/sway. Though I have not tested if this crash happens there too. The reason why I am mentioning this is mostly because there _might_ be some conflicts between when Godot opens a new window, and how Hyprland handles windows. If, we keep in mind what I mentiond earlier about the mutex error. So it could be a Hyprland problem.

Other than that, there is not a whole lot to work off of from here. I might just have to wait this out and see if it might be because of my setup. So I might have to wait for new updates and such.

And the reason as to why I do not think I have to open an issue in the Hyprland repo. Is because it seems to be a Godot 4.0.x specific issue.

Also one more thing, it seems this does not happen with the saving scenes window, but only when you right-click the FileSystem-tab and attempt to create any resource from there.

UPDATE: Got some more errors that might be a little more helpful
```
ERROR:connection.cc(46) X connection error received 
```
So XWayland may be involved in this

Additionally, I can create sub-resources in the inspector (i.e. a new Shader) and store the file that way. That works. Odd...

### Steps to reproduce

Setup a Hyprland session, then install Godot 4.0.x (be it through the website or through pacman/yay it does not matter)
Create/import any project
Attempt to create a file or a directory inside of godot
Then prepare for the session to crash

### Minimal reproduction project

Any project.
VkSubpassDependency dep = {
				p_create_info->pDependencies[i].srcSubpass, 
				p_create_info->pDependencies[i].dstSubpass, 
				p_create_info->pDependencies[i].srcStageMask, 
				p_create_info->pDependencies[i].dstStageMask, 
				p_create_info->pDependencies[i].srcAccessMask, 
				p_create_info->pDependencies[i].dstAccessMask, 
				p_create_info->pDependencies[i].dependencyFlags, 
			};
			dependencies.push_back(dep);
		}
		
		
		
		VkRenderPassCreateInfo create_info = {
			VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO, 
			next, 
			p_create_info->flags, 
			(uint32_t)attachments.size(), 
			attachments.ptr(), 
			(uint32_t)subpasses.size(), 
			subpasses.ptr(), 
			(uint32_t)dependencies.size(), 
			dependencies.ptr(), 
		};
		return vkCreateRenderPass(device, &create_info, p_allocator, p_render_pass);
	}
}
VKAPI_ATTR VkBool32 VKAPI_CALL VulkanContext::_debug_messenger_callback(