[misc] We use different versions of Lucene on different branches so we must make sure the index folder is not reused across branches and even across tests.

(cherry picked from commit d98e1f777062b7c137e409fe1b989dc26d1d41b4)