g10: Fix a race condition initially creating trustdb.