sched: fix divide error when trying to configure rt_period to zero