CAIRNS: The Cluster and Infall Region Nearby Survey II. Environmental Dependence of Infrared Mass-to-light Ratios