ATOM-CBF: Adaptive Safe Perception-Based Control under Out-of-Distribution Measurements