GASP XXVII: Gas-phase Metallicity Scaling Relations in Disk Galaxies with and without Ram Pressure Stripping