Changed logic on creation of top level html file for an iterated test. The lock is only attempted to be obtained for a few seconds. Then we give up. On tests with 1000's of iterations the creation of this file over and over again was becoming a serious bottleneck