kalua: use the new global var LOWMEM at serveral situations, instead of invoking function _system ram_size()