luaevent.c: Drops global registration of core in favor of reducing global pollution