lib: constify arguments to notmuch_query_get_*