Fix: scheduler: Rearrange some code to make cppcheck happy.
With the previous code, cppcheck was throwing this error:
lib/pengine/status.c:371:0: error: failed to expand 'pe__set_working_set_flags', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective]
^
Apparently it didn't like using a macro in the parameter list of another
macro.