Fix identity handling for inproc transport

Fixes #872