lock benchmark test