replay: Handle edge case of externals targeting the same path
Some externals can erroneously target the same path and when a commit fixes that the loader could not restore the content or directory properly due to the cache used to speedup externals processing, so ensure to handle that edge case.
This fixes the partial loading of https://svn.code.sf.net/p/courier/code.