On OH line formation and oxygen abundances in metal-poor stars