Adaptive Safety Using Control Barrier Functions and Hybrid Adaptation