strbuf: move strbuf_branchname to sha1_name.c