fixed thread priority issues on POSIX platforms with non-standard scheduling policy