This should be calling make_shared_variant_header(variant_header_deep_copy()) in hts_memory