work around "signal loses thread pointer" issue with "approach 2"
[musl] / src / signal / restore.c