D12983 added a sleep in wait_for_debug_log. But in some rare instances we want the loop to run as fast as possible to improve the test's chances of being meaningful.
For instance in feature_init.py we want to test that the node does not crash during some sensitive operations, so we want to sigterm ASAP after a message appears in the debug log.
Ref core#30006