You still have the LBG_update_progressbar in your code. You can remove it.

There is an other possibility that came into my mind. Maybe you this isn't the first time you load a level? In that case you have to compare the value of the frame variable before and after you loaded the level. The difference of those values is the actual number of frames the engine needs to load your level.