clean up handling of thread/nothread mode, locking
[musl] / src / signal / restore.c