plugins: add max retry logic for mtk rild connect

This change adds a maximum retry count for connecting to
rild.  After ~30s, rild will give up trying to connect.
This changes the current behavior which will retry forever.