kalua: system: flash_size() rewrote from scratch, much faster now