A caller that gave up while its ACME order was in progress abandoned the
order partway and left a stale _acme-challenge record behind. Run one
issuance per domain in a goroutine whose context the extension owns, and
have every caller wait on it up to its own deadline. A caller that needs
more validity than the running issuance was started with waits for it to
finish and then runs its own.
The in-flight map keeps a domain to one getCertPEM at a time, so it
replaces both the per-domain lock and the async renewal bookkeeping.
Shutdown cancels the extension's base context, and Go refuses to start a
goroutine once it has, so Shutdown no longer takes the mutexes that
goroutine starts are made under.
Updates #21759
Signed-off-by: Brendan Creane <[email protected]>