git-gui: Avoid unnecessary symbolic-ref call during checkout