Fix assert (hash != 0) sometimes when a file is deleted by another process
This just happened to me while running ctest in kio with CTEST_PARALLEL_LEVEL=8.