simplify setting result on thread cancellation
[musl] / src / thread / cancellation2.c