fix some fmemopen behaviors
[musl] / src / thread / clone.c