[PATCH 6.15 245/263] drm/amdgpu/mes: add missing locking in helper functions