fix failure of mbsrtowcs to record stop position when dest is full
[musl] / src / thread / tls.c