Near-infrared and Optical Observations of Type Ic SN 2021krf: Luminous Late-time Emission and Dust Formation