[tools] flash via bmp: reset and detach from target after uploading

Seems like it didn't do a proper reset when flashing via BlackMagicProbe.
Calling halt in the gdb script should reset and detach from target after uploading