Fix IsInitialBlockDownload which was broken by headers first.

I don't mind how it's called, although I'd like an explicit

    static bool lockibdstate = false;

...for readability