[IPC] Added locking main RIL mutex on IPC dispatching.

It does fix potential race condition between
RIL thread and IPC client thread.
[CALL] Removed active_calls field.

It was only used for ril_request_get_current_calls.
This value is now calculated dynamically.
Realloc is used to build RIL_Call* array.