[PATCH 6.1 319/440] tools/memory-model: Fix bug in lock.cat