Use GCD to serialize access to open-sockets dictionary.