closed #4542: fix crash in win32(delete mutex while still lock)