[PATCH 5.10 150/352] tools/memory-model: Fix bug in lock.cat