module: Fix mod->mkobj.kobj potentially freed too early