Bug 965765 - Force a cardstatechange publish to ensure SIM PIN dialog is displayed

In some cases, we can have 'iccdetected' triggered after
'cardstatechange'. This makes the handler not installed in time and thus
we miss the event and are not able to display the SIM PIN unlock
interface. We add checking on the locked state of the SIM card, and if
it is locked then we force issue a 'cardstatechange' event.