NXP-11854: fix infinite loop + deadlock due to corrupted hashmap