Thermal boundary layer in liquid metals with variable thermal conductivity