Fixed bug which would cause Mode commands to hang when run across the network
(which would be the case if running tsctl locally when the server is
already running in another process)