Additional check for deadlock.