0c9083723c
The pybind for recompile was not releasing the GIL when it called mj_recompile, this can caused deadlocks with the asset loading threads. For example if a resource provider was trying to call Python. To resolve this the GIL is release just for the mj_recompile. Addresses: https://github.com/google-deepmind/mujoco/issues/3118