lib/parse-sexp: handle lastmod queries.