libril: Do SIM I/O according to v4 protocol

Apparently SIM I/O is still dependant on older, v4 protocol. v4 protocol is not
compatible with v6. This fixes SIM interactions.
libril: Minor code sync with u8800 libril

Remove unsupported ifdefs, use AOSP code for a specific definition.