fix in createSession logic that handles concurrent closes

was previously trying to remove a ChannelState from a collection
of channels instead of the attached channel