tests: Use 'gpg-agent --allow-loopback-pinentry' if applicable.