only increment the progressbar for files when the file has been fully transfered
Silent warning:

warning: no previous prototype for ‘set_csync_file_locked_or_open_ext’ [-Wmissing-prototypes]