prevent infinite loop in libarchive
allow re-reading the same RAR header multiple times