Fix lock debugging broken in 1.7