benchmark: conditionally use spawn with taskset for CPU pinning
This PR updates our process spawning mechanism from fork to spawn to incorporate the taskset command, enabling CPU pinning for benchmark tasks. This change aims to improve benchmark consistency and reliability on systems with heterogeneous CPU cores.
closes #52233 (closed)