Signal m_tip_block_cv when Ctrl-C is pressed or SIGTERM is received, the same way it is currently signaled when the stop RPC is called. This lets RPC calls like waitforblockheight and IPC calls like waitTipChanged be interrupted, instead of waiting for their original timeouts and delaying shutdown.
This issue was reported by plebhash in #33463. These hangs have been present since #30409. A similar bug was also fixed previously in Qt in #18452 and this PR simplifies that fix.