pinentry supports --timeout (and a SETTIMEOUT command) but there is no way to
tell gpg-agent to set the timeout. Setting pinentry-program does not help,
because it is not possible to add command line arguments.
A workaround is to create a wrapper script that passes --timeout to pinentry.