[runtime] Get rid of the _wapi_thread_signal_self () function.
[runtime] More io-layer threading cleanups.