Small mutex fix