An adaptive behavioral control motif mediated by cortical axo-axonic inhibition