core: allow changing the priority at runtime

~~Untested.~~ RFC.

Closes #198.
And on a second thought I might like it even better if `PID_NULL` was used throughout instead. But this is just an idea, I'm  undecided.