Add a perf test for acquireUsingLocked.