test_socket: cancel scheduled alarm on test failure
Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess
Various clarifications based on feedback & questions over the years.
(grafted from 23181bf411a16287a0a54e910fc0f9ecd2764bf0)