Set `module.parent` correctly inside sandboxed modules.