An ISOCAM survey through gravitationally lensing galaxy clusters IV. Luminous infrared galaxies in Cl 0024+1654 and the dynamical status of clusters