contrib: bone-flash-tool: add more explicit sync points, make it safer to run on the buildhost

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>