prevent unlocking of unlocked mutex