SERVER-11178: fix index rebuilding after crash