os/os-linux: add pthread CPU affinity helper