Add invalid flag to CTCoreFolder.

This can be used by callers to indicate that a CTCoreFolder is
being discarded (i.e. queued to be disconnected) and should no
longer be used.
Remove unused #import.