Controlled cooling or heating of lubricant; Temperature control therefor