crush: Avoid ruleset overflow.

Add check to avoid ruleset of struct crush_rule_mask overflow.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
move this up to line 29 or so with the other MAX values?