HPCC-12399 Address cleaner socket updates

Added writetms routine for address cleaner plugin (in LN repo)

This PR goes together with an LN repo PR #705

https://github.com/hpcc-systems/LN/pull/705

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
I think you need to use %p if you remove the cast.  Otherwise, on a 64 bit system, the type of the pointer is larger than an int, and you are outputting it with a integer specifier - so it could go wrong.