test(distributed): migrate before restricting DB

The failure fixture constructed a second registry with its restricted role. That role cannot create the cluster sequence, so the spec failed during migration instead of the slot lookup.

Keep migration on the admin handle and replace only the registry runtime handle after setup.

Assisted-by: Codex:GPT-5 [apply_patch] [exec_command]
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f