Fixed mutex debugging crash.