HPCC-9182 CSafeSocket write should handle buffer size of 0

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>