lock file when add to zip archive or count hash-sum