tools: Fix FILE memory leak in gpg-connect-agent.
* tools/gpg-connect-agent.c (do_open): dup the fileno and close the stream.
(cherry picked from commit 378719f25fe00d46393541f4a4f79e04484c3000)
- GnuPG-bug-id: T4220
- Signed-off-by: Werner Koch <wk@gnupg.org>