Retry when failing to connect to rild

Retry when failing to connect to rild to be able to recover if rild is not ready. This fixes bugs #1356204 and #1356231.