Bind git_repository_set_head[_detached]
Use head setting API to avoid duplicate reflog entries