Unveiling the dynamical state of massive clusters through the ICL fraction