model: rename check_deadlock() to is_circular_wait()