Fix bug with lock in confirmPGP.