Method EnsureRootStructureKeyAsync()
Builds the unique key of root structures when it is missing, removing empty duplicates first. Called under the
schema lock: by the module pass after the bundle (PostgreSQL), by the upgrade pass of the file (SQLite).
protected Task EnsureRootStructureKeyAsync()