bin/gpg-expect: fix gpg-expect hang

Signed-off-by: Bao Haojun <baohaojun@gmail.com>