Fix memory leak in notmuch_thread_results_t