pub fn pin_thread_to_numa_node(node: usize) -> Result<()>
Pin the current thread to CPUs on a specific NUMA node.
Returns an error if thread pinning fails.