pal: Protect session open with graph lock

Concurrent open and close of different streams on the same backend,
leads to a race condition on the same device obj metadata, causing
metadata corruption. To avoid such cases, protect session_open with
graph_lock.

Change-Id: Ibd01653091d08172a7129094bd7c030868ecf385
2 files changed