ipc: Synchronize access to active sessions

Session specific information stored for open sessions
can be accessed from multiple threads. Updating data
structures without atomic access to the resources can
lead to race conditions. Synchronize access to active
sessions with a mutex.

Change-Id: Ifb2fb43cde509119e620cede10dbd0e0533c3ba0
2 files changed