kmsagnosticbin: Fix unexpected behaviour produced by unlocking an unlocked mutex

Change-Id: Ifd85b1c9de8fc88e4f5a827837dbe10077d9a90c