wait until bitcoind is ready on startup