HPCC-12085 Avoid malloc/free when updating the buffer callbacks

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>