magit-insert-local-branches: check upstream name

Check whether upstream name is in local or remote branch names.
If upstream name is not include in branch names, it should be
beginning of commit message.