SyncMsg: Add locking around output buffer building to fix race conditions.
Enhance detailed log messages to include referenced UUID for new/remove.
SyncMsg: fix race condition when UpdatedProperties SyncMsg was queued
and multiple SyncConnectors were writing the same message.
Clean up update addition code for SyncMsgUpdatedProperties.