DeferredUpdateBar and get_lines_count() moved to locallib.