mail/notmuch: Update to 0.31
Changelog: https://notmuchmail.org/news/release-0.31/
Add patch to fix a build issue with mail/notmuch-emacs.