HPCC-12399 Address cleaner socket updates

Added writetms routine for address cleaner
updated after code review

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
Merge pull request #6709 from mckellyln/hpcc12399

HPCC-12399 Address cleaner socket updates

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>