HPCC-11968 Port back unique allocator change to 4.2.x

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>