Fixes engine startup time regression described here: https://github.com/godotengine/godot/issues/43351#issuecomment-847466783 (cherry picked from commit 52a535c030)
52a535c030