Preserve session id when running an iproto on_disconnect trigger.

There is already a test for this, but it is only possible
to repeat the condition for a bug in client/server testing (not localhost).