tn5250: add patch to fix segfault

Closes #18678.

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