[ASTBridging] Avoid temporary SmallVector for 'InheritedEntry' list
We know the number of the entries. Allocate the storage in ASTContext
directly, then initialize it transforming the bridged values.
Add ASTContext::AllocateTransform() helper function.