core: Use ostree_commit_get_parent in ostree_repo_resolve_rev