Fix recursive scanner to reusing etags

Fixes #440

@JacekZ please test if this solves the issue of new etags being generated when calling the scanner from occ

cc @DeepDiver1975 @karlitschek @MTGap