Fixed progress bar thread start/termination

The condition keeping the thread running would sometimes prematurely terminate when the video loop reset.

There was also a problem if the activity was backgrounded and restored (ex. the screen is turned off and on again)