Lock contention determination