Intertwined symmetry of the magnetic modulation and the flux-line lattice in the superconducting state of TmNi2B2C