crush: Avoid ruleset overflow.

Add check to avoid ruleset of struct crush_rule_mask overflow.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>