Method RunUnderSchemaLockAsync(Func<Task>, CancellationToken)
Runs work under the schema lock (). Reentrant: called
again from inside the work, it runs the inner work directly instead of waiting for the lock this flow holds.
The schema sync of the schemes takes the lock through it when it has something to write.
protected Task RunUnderSchemaLockAsync(Func<Task> work, CancellationToken cancellationToken = default)