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
Exception ex = expectThrows(IllegalStateException.class, () -> 
            service.applyAliasActions(
                testState,
                Collections.singletonList(new AliasAction.Add("test2", "alias", null, null, null, null, true))
            ));
            assertThat(ex.getMessage(), containsString("alias [alias] has is_hidden set to true on indices"));
        }
        {
            
            ClusterState testState = service.applyAliasActions(
                originalState,
                Collections.singletonList(new AliasAction.Add("test1", "alias", null, null, null, null, true))
            );
            
            Exception ex = expectThrows(IllegalStateException.class, () -> 
            service.applyAliasActions(
                testState,
                Collections.singletonList(new AliasAction.Add("test2", "alias", null, null, null, null, randomFrom(false, null)))
            ));
            assertThat(ex.getMessage(), containsString("alias [alias] has is_hidden set to true on indices"));
        }
        {
            
            ClusterState testState = service.applyAliasActions(
                originalState,
                Collections.singletonList(new AliasAction.Add("test1", "alias", null, null, null, null, randomFrom(false, null)))
            );
            
            service.applyAliasActions(
                testState,