pthread: pthread_barrier should call yield
tests: clean up test_pthread_barrier Makefile
core: allow changing the priority at runtime

Closes #198.
tests: add sched_set_priority() test