Skip rule resolution when ruleid matches ruleset_id

Add a checking funtion into CrushWrapper::finalize(), this funtion
will check if current crush rules hoding the constraint that one rule
per ruleset and rule_id=ruleset_id.

If such a constraint holds, we set a flag(is_rule_id_matches_ruleset_id)
to true and then skip the rule resolution (which searches all rules for
a rule with the right ruleset and size).

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
what if crush_find_rule does not find a match for type / size ?