On the impact of baryons on the halo mass function, bias, and cluster cosmology