[PATCH 5.4 105/259] tools/memory-model: Fix bug in lock.cat