fix errno handling in scandir:
[musl] / src / thread / cancellation2.c