Simplify RecordLayoutBuilder with getAsCXXRecordDecl()

No functionality change.