kr/pty: vendor upstream 05017fcccf

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
Merge pull request #9713 from unclejack/bump_vendored_kr_pty

kr/pty: vendor upstream 05017fcccf