The ESO SupJup Survey: IV. Unveiling the carbon isotope ratio of GQ Lup B and its host star