Measurement of flow harmonics correlations with mean transverse momentum in lead–lead and proton–lead collisions at sqrt(sNN) = 5.02 TeV with the ATLAS detector