J-PLUS: Systematic impact of metallicity on photometric calibration with the stellar locus