Inhibiting corrosion or fouling in apparatus for treatment or conversion of hydrocarbon oils, in general