Warm CNO nucleosynthesis as a possible enrichment mechanism for oxygen and fluorine isotopes