treecast mutex fix