Windows affinity fix for thread based jobs