lib: Add "lastmod:" queries for filtering by last modification