notmuch: fix build with clang and on 10.9

Fixes #23555.