test_framework: detect failure of bitcoind startup
Replace the bitcoin-cli -rpcwait after spawning bitcoind
with our own loop that detects when bitcoind exits prematurely.
And if one node fails to start, stop the others.
This prevents a hang in such a case (see #7463).