pthread: support creation via specific cpu_session

Issue #1114