fix errno behavior in clock_* functions
[musl] / src / thread / clone.c