added locks to prevent multiple threads to access the handler at the same time

8 jobs for fix_tests in 0 seconds