LuaGC: runtime detect ideal #steps