Hackers who sabotaged refrigeration systems at hundreds of French supermarkets exploited the growing connectivity of equipment that was once largely mechanical.