Fix bugs in decrypt/verifying from standard input.

The bug was that decryption/verifying from standard input causes stdin to be closed,
and fd=0 is given back to the OS.  Then, subsequent calls to gpg are in danger of failing,
which we'll see in this case since we need to make some GPG calls to verify key on
the signature we got back after the decryption.
changes