[ril] Make ril plugin wait for RIL_CONNECTED before sending GET_SIM_StATUS.
[gril] Fix CONNECTED check.
[ril] Add retry logic to initial GET_SIM_STATUS logic.
[ril] Add forward declaration of send_get_sim_status().
[ril/rilmodem] Re-merge from trunk.
[ril] Cleanup review comments, and fix merge error.
Releasing 1.12phablet5
[rildmodem] Add retry logic to the initial GET_SIM_STATUS logic (LP: #1187031). Fixes: https://bugs.launchpad.net/bugs/1187031.

Approved by Ricardo Salveti, PS Jenkins bot.