fix broken ttyname[_r] (failure to null-terminate result)
[musl] / src / thread / __unmapself.c