samples: synchronization: use k_thread_cpu_pin

Use shortcut API to pin thread to a CPU.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 file changed