cmdutils: preserve unchanged log flags when setting AV_LOG_SKIP_REPEATED