Fix identity handling for inproc transport

Fixes #872
Merge pull request #876 from hurtonm/master

Fix identity handling for inproc transport