Create RecastMesh outside critical section

To not lock main thread when it tries to update objects.
25 jobs for navmesh_reduce_lock_wait in 76 minutes and 8 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed Debian_AndroidNDK_arm64-v8a #1468345984
linux

00:36:04

passed Debian_Clang #1468345945
docker linux

00:51:29

passed Debian_Clang_tests #1468345946
docker linux

00:09:42

passed Debian_Clang_tests_Debug #1468345947
docker linux

00:05:38

passed Debian_GCC #1468345937
docker linux

01:04:35

passed Debian_GCC_Static_Deps #1468345942
docker linux

00:18:50

passed Debian_GCC_Static_Deps_tests #1468345944
docker linux

00:10:21

passed Debian_GCC_tests #1468345938
docker linux

00:09:10

passed Debian_GCC_tests_Debug #1468345939
docker linux

00:05:23

passed Windows_MSBuild_CS_Debug #1468345978
windows

00:50:56

passed Windows_MSBuild_CS_RelWithDebInfo #1468345982
windows

00:51:27

passed Windows_MSBuild_CS_Release #1468345973
windows

00:51:16

passed Windows_MSBuild_Engine_Debug #1468345970
windows

00:50:47

passed Windows_MSBuild_Engine_RelWithDebInfo #1468345971
windows

00:50:23

passed Windows_MSBuild_Engine_Release #1468345969
windows

00:48:46

passed Windows_MSBuild_Tests_RelWithDebInfo #1468345983
windows

00:29:55

passed Windows_Ninja_CS_Debug #1468345966
windows

00:48:56

passed Windows_Ninja_CS_RelWithDebInfo #1468345967
windows

00:51:27

passed Windows_Ninja_CS_Release #1468345965
windows

00:47:54

passed Windows_Ninja_Engine_Debug #1468345960
windows

00:50:38

passed Windows_Ninja_Engine_RelWithDebInfo #1468345963
windows

00:52:53

passed Windows_Ninja_Engine_Release #1468345958
windows

00:49:26

passed Windows_Ninja_Tests_RelWithDebInfo #1468345968
windows

00:33:20

passed macOS10.15_Xcode11 #1468345953
shared-macos-amd64

01:16:04

passed macOS11_Xcode12 #1468345948
shared-macos-amd64

01:00:15