notmuch search: Use "thread" rather than "id" when formatting with JSON