optimize timer creation and possibly protect against some minor races
[musl] / src / thread / cancellation3.c