Use nested transaction to update remote schema

Otherwise it commit/rollback in the end of the transaction will close
the transaction initiated by pkgdb_repo_init()