Long-term Multiband Near-infrared Variability of the Blazar OJ 287 during 2007–2021