Controlling temperature of lubricant