Fixed thread_set_priority to also set base_priority. 12 of 18 tests pass now