Add DEBUG_LOCKCONTENTION, to warn each time a thread waits to lock.