libtls: Catch POLLHUP/NVAL in TLS socket splicing