Deadlock on SG/FLX & ES 9.3.x during configuration

Elasticsearch version: 9.3

Describe the issue:
Running sgctl update-config against a two-node ES 9.3.3 + SG FLX 4.1.10 cluster hangs
indefinitely. If the pool size is 1, the ES management thread on the master node blocks inside
ConfigUpdateAction.nodeOperation() and never completes.
The problem does not happen on ES 9.2 neither on ES 8.19; the root cause is an ES 9.3 behaviour change: auto_put_mapping is now dispatched to the
MANAGEMENT thread pool. In earlier versions it ran on a different pool, so the deadlock did
not occur.

Steps to reproduce:

  1. See attached file & README

Expected behavior:

No sgctl hangs

Provide configuration:
In attached file

searchguard-es-9_3-deadlock.zip (6.7 KB)