Prevent multiple TCP connection open in concurrent access

Signed-off-by: Nicolas <nicolas@cipango.org>