posix: minor pthread_barrier clean up

This are the first two commits of #1307.

pthread_barrier_wait() needs to yield if it woke up a thread with a higher priority, and the Makefile of the accompanying test is cluttered.
Ok, I don't get it, why this thread should `yield()` here?