repo_rpmdb's freestate() can free rootdir only after closedbenv() finish...

...es.

Because serialize_dbenv_ops() still uses rootdir.