validate_headref: use skip_prefix for symref parsing