Fix isolation level dirty detection logic.