unittest for Thread.priority
use pthread_setschedprio where available

- on linux since glibc 2.3.4. (Jan 2005)
- on OSX and FreeBSD it's missing
add Thread.PRIORITY_DEFAULT and use Windows constants
add in contract to Thread.priority setter
Merge pull request #526 from dawgfoto/threadPriority

improve Thread priority