Merge pull request #975 in CASA/casa from CAS-12478 to master
* commit '7ab77a91d0a7887b574a37ed926fb04dbbcbc2da':
synthesis* tools: unique_ptr to protect tmp Records from toRecord(), CAS-12478
synthesisimager: ensure tmp Records from toRecord() are released , CAS-12478