Add thread contention monitoring.