Added lock to prevent "ZIP_Read: specified offset out of range" exceptions in multithread environment.