More set thread priority tweaking:

1. Move SETMODE calls into hthreads functions.
2. Issue message that identifies source statement that failed.