Make doTestLockCalls() faster