When use_cascade=True, the prefix_scheduler_metadata variable was only
initialized in the else branch, causing an UnboundLocalError when
use_cascade was True.
Move initialization before the if/else block to ensure the variable
is always defined.
Signed-off-by: c0de128 <kevin.mckay@outlook.com>