unlock mutex on empty tree case