lock while running tests