FIX: must not proceed checking for deadlocks when no resource is hold