Flag duplicate threads for merger