signal: change sig_waitTimeoutSignal() to accept custom timeout hook