Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess