gettext, readline: Add keg_only :shadowed_by_osx

Closes #31951.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>