Create control socket before server thread is started, fixes #24