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

Because serialize_dbenv_ops() still uses rootdir.
Merge pull request #57 from akozumpl/master

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