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