SOPC_LibSub_Disconnect may enter a deadlock when server does not respond with a CloseSessionResponse
Description
SOPC_LibSub_Disconnect
may stay in a while loop if the underlying state machine does not reach a disconnected state.
Analysis
The response timeout cannot call the event callback, as the thread is locked into this while loop. A timout breaking the while loop will avoid the lock.