move mutex init to constructor