Added balance/scheduler state checks.

Including check_balance_reds/0, set_check_balance_reds/2, schedulers_state/0 and active_schedulers/0.