Fix return value for setcontext and swapcontext.