XOP-113: Modify Unixext.lines_fold to avoid stack overflow.

Signed-off-by: John Else <john.else@citrix.com>

Import: xop113 file on CA-73511
Imported-by: roks
Merge-ticket: CA-73511