gpg: Extend free_packet to handle a packet parser context.