Epidemic oscillations induced by social network control