Bulk viscosity in superfluid neutron star cores. II. Modified Urca processes in $npe\mu$ matter