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