Added WITH (HOLDLOCK) hint to every MERGE statement to make sure concurrent INSERTs do not conflict.