fix mutex init issue.