Add interface to TargetLibraryInfo::setAvailableWithName

This allows setting custom names for functions for a `TargetLibraryInfo`, as well as allowing specifying a `TargetLibraryInfo` for a `curatedPassSetSpec`. See the commit messages for details.