We got several reports of users on Fedora 39 seeing various applications using GnuPG hanging.
Some investigation lead to the gnupg change using keyboxd by default and by the fact that users after update changed hostnames.
While I was reproducing the issue (see the comment #16), I see that keyboxd keeps waiting for a stale lock forever
keyboxd[3549]: waiting for lock (held by 2886) ...
I do not have deep knowledge of the DB and keyboxd architecture, but I think gnupg should remove stale lock (even for different hostnames), have some timeout or something to avoid infinite hangs.