SERVER-8412: fix repair database failure cleanup