gpg: Fix trustdb updates without lock held.