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