Patch Set 3:

Robin, I uploaded a test for this. As junit test this is quite tricky because in unit tests we are so fast that we will smudge entries nearly always. And with smudged dircache entries it's hard to detect this problem.