finish unifying thread register handling in preparation for porting
[musl] / src / thread / clone.c