/macrolock on the last line doesn't work (unless it has <wait.n>). You should write it on the first line.
/macrolock
ALIASES:
 /macrolock, /mlock
USAGE:
 /macrolock

→Prevents the execution of any additional macros until all steps following /macrolock have been executed.
You should write /macroicon on the last line because it delays following codes (16.7 ms in 60 fps or 33.3 ms in 30 fps).