Lock wait time profiling