Revise critical section regarding state/pend_state
Add codes to lock/unlock mutex during checking state/pend_state
in __ms_bus_cb() and ms_webrtcbin_notify_ice_connection_state_cb().
ms_trigger_state_cb() is added to only invoke the user callback
without locking/unlocking the mutex.
This patch is to fix the bug reported by
- https://github.sec.samsung.net/tizen/mediastreamer/issues/20
[Issue Type] Bug fix
[Version] 0.1.126
Change-Id: Idb5b66ec47b0491d5dc5e9825158d46ba885249f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>