Critical velocity and dissipation of an ultracold Bose-Fermi counterflow