refactor mutex check
code clean up
update version to 1.152