Fix rpmdb: Thread/process xxx failed: Thread died in Berkeley DB library