RemoveStageBarrier: stage with a bigger ID should take precedence