go.crypto/openpgp: don't corrupt encrypted private key when decryption fails.

Since the decryption was done in place, if an incorrect key was given,
the encrypted data would be corrupted.

Fixes golang/go#8439.

R=bradfitz
CC=golang-codereviews
https://golang.org/cl/115550043
2 files changed