Improve NETCONF session ID handling