[PATCH 6.6 422/568] tools/memory-model: Fix bug in lock.cat