Refactor: scheduler: make finding unfencing devices more efficient
We can check whether a resource has "requires" set to "unfencing" via a
resource flag rather than a hash table lookup plus string comparison, and
we can postpone a hash lookup for "provides" until everything else has been
checked.