fix deadlock and incorrect output with the -list option
i think this happens when there are a large number of folders, which could let the first List call not be completely finished before the second one starts.
i think this happens when there are a large number of folders, which could let the first List call not be completely finished before the second one starts.