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