[PATCH 5.16 049/164] hwmon: Handle failure to register sensor with thermal zone correctly