Deny contest statistics refresh if previous request was not finished yet

Another important performance issues on the contest overview page is that the next request to update submissions and statistics is being sent not waiting for previous one to finish. In case of large number of submissions and/or low performance of the system because of high load, large number of request may be executed in parallel. This commit adds a sort of lock to prevent this behaviour.