CDB-1144 #resolve User#sync_tables_metadata removes orphaned metadata records