Chiral symmetry restoration versus deconfinement in heavy-ion collisions at high baryon density