set connection and session state before sending response to avoid
invalid state upon thread context switching.

Change-Id: I3adcb9fd5f0f06141f5b761ce8af4305dd2fbca1
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>