Flickering AGN can explain the strong circumgalactic O VI observed by COS-Halos