optimize get_lastmod in sitemaps

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>