Blocking and ripening of colloids in porous media and their implications for bacterial transport