Fix unused private variable warning when single threading.