fix pointer type mismatch and misplacement of const
[musl] / src / thread / __unmapself.c