[openmp] porting affinity feature to netbsd. (#84618)

netbsd supports the portable hwloc's layer as well. for a hardware with
4 cpus, a cpu set is 4 and maxcpus is 256.

GitOrigin-RevId: 11cd2a33f1a80c1b8ad1968c1316204b172e4937
6 files changed