Update the internal best block index as well as the prune lock.
Declared in <index/base.h>
<index/base.h>
void SetBestBlockIndex(CBlockIndex const* block);