fix mutex timeout problem under some deadlock condition