libtask internally uses ucontext, which is not compatible to be used across
pthread, so all the ucontext initialization and system calls, should happen
only in the task scheduler thread.