Learning Feasibility Constraints for Control Barrier Functions