WIKI-794 When migrating data, move page history deletion to a dedicated ...

...thread to avoid the slowness