[PATCH 6.12 168/232] drm/amdgpu/mes: add missing locking in helper functions