Fixes potential crashes in navmesh geometry functions.
Fixes threaded NavigationMesh baking under new SceneTree thread guards that blocked the process.