The [ClearRealmCache API](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html) evicts users from caching realms. It should also clear the [lastSuccessfulAuthCache](https://github.com/elastic/elasticsearch/blob/fcfb04392cfdf6f3ae35587ce0f4ed6522cef05a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/AuthenticationService.java#L97) in the process. 

But it fails to do that if the realm is specified as a wildcard, i.e. the following request clear all realm caches, but not the lastSuccessfulAuthCache ([relevant code](https://github.com/elastic/elasticsearch/blob/fcfb04392cfdf6f3ae35587ce0f4ed6522cef05a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/realm/TransportClearRealmCacheAction.java#L85-L90)):

```
POST _security/realm/*/_clear_cache
```

But it does clear lastSuccessfulAuthCache if concrete realm name is specified, e.g. the following request clear both the reserved realm cache and the lastSuccessfulAuthCache ([relevant code](https://github.com/elastic/elasticsearch/blob/fcfb04392cfdf6f3ae35587ce0f4ed6522cef05a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/realm/TransportClearRealmCacheAction.java#L92-L100)):

```
POST _security/realm/reserved/_clear_cache
```

#### Steps to reproduce the issue
1. Enable both file and native realm on a node and make sure file is before native in the realm chain
2. Create a native user `foo` and authenticate with it.
3. Add a file user `foo` with the same password and wait for the node to auto-load the file
4. Clear realm cache with `POST _security/realm/*/_clear_cache`
5. Authenticate with `foo`, but the realm is still `native` (_incorrect behaviour_)
6. Clear the realm cache with `POST _security/realm/reserved/_clear_cache`
7. Authenticate with `foo`, this time the realm is `file` (_correct behaviour_)

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/realm/TransportClearRealmCacheAction.java
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */
package org.elasticsearch.xpack.security.action.realm;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.FailedNodeException;
import org.elasticsearch.action.support.ActionFilters;
import org.elasticsearch.action.support.nodes.TransportNodesAction;
import org.elasticsearch.cluster.node.DiscoveryNode;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
import org.elasticsearch.xpack.core.security.action.realm.ClearRealmCacheAction;
import org.elasticsearch.xpack.core.security.action.realm.ClearRealmCacheRequest;
import org.elasticsearch.xpack.core.security.action.realm.ClearRealmCacheResponse;
import org.elasticsearch.xpack.core.security.authc.Realm;
import org.elasticsearch.xpack.core.security.authc.support.CachingRealm;
import org.elasticsearch.xpack.security.authc.AuthenticationService;
import org.elasticsearch.xpack.security.authc.Realms;
import java.io.IOException;
import java.util.List;
public class TransportClearRealmCacheAction extends TransportNodesAction<