g10: Make sure to have the directory for trustdb.
* g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE. Check the directory and create it if none before calling take_write_lock.
Thanks to Marc Deslauriers for the bug report and his patch.
- GnuPG-bug-id: T2246
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>