Read/write integer config entries depending on their signedness

With GnuPG 2.3 the type of some entries changed from unsigned int to int.

GnuPG-bug-id: 5217
2 jobs for master in 14 minutes and 10 seconds (queued for 5 minutes and 45 seconds)