Improve thread safety of ProgressBar#increment