[MemoryBuiltins] Infer allockind for strdup (#246479)
Infer `allockind("alloc")` for strdup/strndup, and treat __strdup the
same as strdup.
This allows us to remove the TLI dependency from more MemoryBuiltins
helpers. The remaining ones are related to allocation size (where strdup
is special).