Lock websocket client connection, so clicking reconnect rapidly does not crash it