sched_pin() is used by the i386 pmap to optimize TLB invalidation in SMP systems by limiting it to a single processor. Ignoring the thread pin count can cause a thread to migrate to another CPU where obsolete cached TLB entries may point to the wrong physical page. This could for example cause pmap_copy_page to copy to/from the wrong page.