notmuch: add entire-thread command, cleanup progress bar code

Signed-off-by: Karel Zak <kzak@redhat.com>