fix mutex always lock bug