Flynn told Trump team he might register as a foreign agent