tls: Prevent zero length write() syscalls.
The current behavior is performing a zero length write() syscall when the write is empty.
This change removes that behavior and prevents a call to the kernel. This change assumes that the zero length write completed async.
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows