lines_ready for lines count

lines_ready was introduced several commits before but it was not really in use.

Its mission is to avoid running the process of counting lines if it was already launched and terminated.
Code whose lines_ready == False are not taken into account during the lines count on homepage.