In any case where font-lock-fontified is nil font-lock-fontify-buffer will properly refontify the whole buffer, but font-lock-flush and font-lock ensure will not do anything. I don't know what causes that variable to be nil in the first place, though.