[process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions
[process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions

influxdb/gopsutil,influxdb/gopsutil