tls: Fix a leak in GTlsDatabaseGnutls

https://bugzilla.gnome.org/show_bug.cgi?id=737106
tls: Fix various leaks in the TLS unit tests

https://bugzilla.gnome.org/show_bug.cgi?id=737106