compat: only define thermal backports if CONFIG_THERMAL is enabled