[PATCH 6.10 632/809] tools/memory-model: Fix bug in lock.cat