kalua: system: ram_free() cleanup/minor optimization