core: allow changing the priority at runtime

~~Untested.~~ RFC.

Closes #198.
"you'd have to also test for `<= SCHED_PRIORITY_MIN`", nope, because I can assume that the priorities of the threads are valid.
I like using `>= 0` better because it normally generates nicer bincode. :)