s3:registry: prevent unnecessary transactions in regdb_init