[repo, hooks] small task optimization: don't start cleanup_old_transactions when undo support is not activated, and retrieve a session to update a source only when some source to update is found
if versions_map['cubicweb'][0] == (3, 7, 4):
config['http-session-time'] *= 60
config['cleanup-session-time'] *= 60
config['cleanup-anonymous-session-time'] *= 60