ACPI: fix memory leak in acpi_thermal_add() error path