Benchmark locking and some queue locking strategies.