Fix crash when moving files with clizip
Entry objects are created by the plugins, so it is wrong to delete them from other
places. If the plugins run in the main thread, we can just set a parent
to the entries. Otherwise (in the libarchive case) we need to manually
delete them.
Closes T3988
Differential Revision: D3027