Fix infinite loop in depot_verify_chunks.py get_chunks
Add visited set guard to iterative stack-based traversal to prevent
infinite loops when p4 dirs returns paths that resolve back to the
current directory (e.g. paths with trailing /... that strip to parent).
Also handle edge case where no new subdirectories can be found for
a too-large directory by falling back to including it as a leaf chunk.