fixed bug wtih POSIX pthread_getschedparam call