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