Refactor: scheduler: change return type of resource transition function
Change the return value of rsc_transition_fn from bool to void. Instead of
returning false, have the functions assert on errors, and replace NullOp() with
specifying NULL as the function.