Move IsInitialBlockDownload from main to checkpoints

Low-risk part of #3088