JOYS+: Mid-infrared detection of gas-phase SO2 emission in a low-mass protostar: The case of NGC 1333 IRAS 2A: Hot core or accretion shock?