Device for sealing the necks of bags TD-A