Fix memleak in sr_gdb_thread_parse error path

Closes #152.

Signed-off-by: Martin Milata <mmilata@redhat.com>