Improved usage of temporary files in tests.
Adjusted synchr. test to the new lock management.
Increased concurency factor of statistical test.