target/cortex_m: make a variable local