Only do unsynchronisation if header flag says so

Pass around v2_tag_header instead of only the major version
number to get access to header flags