Handle import cycles.

I've been using errcheck via editor integration, and was getting occasional busy loops when refactoring. It ended up being because go-importer didn't handle import cycles. This change fixes that.