As the title says. These tasks should be batched because they can arise from ILM actions.

Relates #77466
server/src/test/java/org/elasticsearch/cluster/metadata/MetadataIndexAliasesServiceTests.java
before = createIndex(before, "test_2");
        
        ClusterState after = service.applyAliasActions(
            before,
            Arrays.asList(new AliasAction.Add("test_2", "test", null, null, null, null, null), new AliasAction.RemoveIndex("test"))
        );
        IndexAbstraction alias = after.metadata().getIndicesLookup().get("test");
        assertNotNull(alias);
        assertThat(alias.getType(), equalTo(IndexAbstraction.Type.ALIAS));
        assertThat(alias.getIndices(), contains(after.metadata().index("test_2").getIndex()));
        assertAliasesVersionIncreased("test_2", before, after);
    }
    public void testAddAliasToRemovedIndex() {
        
        ClusterState before = createIndex(ClusterState.builder(ClusterName.DEFAULT).build(), "test");
        
        IndexNotFoundException e = expectThrows(
            IndexNotFoundException.class,
            () -> service.applyAliasActions(
                before,
                Arrays.asList(new AliasAction.Add("test", "alias", null, null, null, null, null), new AliasAction.RemoveIndex("test"))
            )
        );
        assertEquals("test", e.getIndex().getName());
    }
    public void testRemoveIndexTwice() {
        
        ClusterState before = createIndex(ClusterState.builder(ClusterName.DEFAULT).build(), "test");
        
        ClusterState after = service.applyAliasActions(