Implemented file locking in signal handler
Put frequency limit on HTML5Parser progress updates
Fix some code warnings