Fix `module = __name__` setting. (The .module attribute is still not
avoidable, used too widely in GenericChannel etc.)