keymat_v1: Avoid memory leak during IKE key derivation in some error cases