notmuch: require Homebrew emacs if emacs is requested

Closes #24802.