generate_packets.py: move get_reset() into PacketsDefinition
Part of #45166. Turn the get_reset() function into a PacketsDefinition.code_delta_stats_reset property.
Part of #45166. Turn the get_reset() function into a PacketsDefinition.code_delta_stats_reset property.