[PULL 03/27] io: fix cleanup for TLS I/O source data on cancellation