fix bug in synccall with no threads: lock was taken but never released
[musl] / src / thread / cancellation2.c