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>
It would be best to not replicate the logic here but to use a new function that implents it to avoid divergence, don't you think ?