lib: Clean up error handling in _notmuch_thread_create