[PATCH 6.12 423/826] x86/tdx: Introduce wrappers to read and write TD metadata