lockdown: fix possible invalid free in GnuTLS cert generation code