[PATCH v2 1/3] efi_var_file: refactor to move buffer functions