fast-import.c: change update_branch to use ref transactions