Use ucontext.h to implement in-process htif