fix a race between Thread::create and Thread::set_ioprio
We may do the following process:
But the entry of Thread maybe not exec after step a) which cause step b)
can't set currently ioprio.
To fix potential race, i add mutex which make step b) wait until entry