g10: Fix another race condition for trustdb access.
* g10/tdbio.c (create_version_record): Call create_hashtable to always make hashtable, together with the version record. (get_trusthashrec): Remove call to create_hashtable.
Thanks to Scott Moser to reproducible script and patience.
(backport from master
commit 35a3ce2acf78a95fecbccfd8db0560cca24232df)
- GnuPG-bug-id: T1675
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>