Fix infinite imports when importing self.

A self import ran into infinite loop. This disallows importing self.

@ussuri