[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
# sync and restart to make sure cwuri does not appear in formssync_schema_props_perms()