Very good point, and as the coefficient of thermal expansion of the plastic package and the metal isothermal block are different as well, if you need that PPM level precision, if possible choose a hermetically sealed metal can package, otherwise you are going to need to make the TO-92 a slip fit in the hole, probably with some sort of retention plate that does not compress the package, and rely on the thermal grease for coupling. Some devices are more sensitive to mechanical stress than others, the obsolete Dallas DS1820 temperature sensor being a case in point. See the first few pages of [url]https://www.digitemp.com/docs/ds1820-report.pdf[url] for the issues that simple humidity changes caused, presumably by swelling the package slightly.