Infinite loop in mutex dtor when backend is unavailable

Origin: https://github.com/arvenil/ninja-mutex/pull/4