Dynamical-friction galaxy-gas coupling and cluster cooling flows