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>
You still need to check that

* the rule exists
* the type matches
* the size is in the bounds of min/max size

and only then return the ruleset