Gravitational quenching by clumpy accretion in cool-core clusters: convective dynamical response to overheating