[PATCH 5.15 204/484] tools/memory-model: Fix bug in lock.cat