Added test case to prove this bug
Infinite loop in mutex dtor when backend is unavailable - unit test
Infinite loop in mutex dtor when backend is unavailable - fix