On Windows, ensure that GNUPGHOME is set to GnuPG's home directory
This needs to happen before the application is created, i.e. we need
to initialize GpgME first.
(cherry picked from commit 6d6d798e69b07fae25df83f0723d3510ec6ef18e)
- GnuPG-bug-id: T6799