In a macro if I use "set_editor_option("ModeInsert",ins)" the status line is not updated
That's a good pick up. I get that fixed in the next patch.
In the mean time you can also use the InsertModeSet
keyboard functions to achieve the required result