Inline join_sessions, it needs sh_mtx held across wait loop.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Merge branch 'xio-firefly-cmake-v084' of https://github.com/linuxbox2/linuxbox-ceph into xio-firefly-cmake-v084