core: allow changing the priority at runtime

~~Untested.~~ RFC.

Closes #198.
Personally I'd prefer `switch_prio > -1` as that directly corresponds to what `switch_prio` has been initialized with (i.e. makes reading easier).