fix transactional set duplicate element insertion.
Merge pull request #2091 from eminn/fix/TxnSetDuplicateElement

fix transactional set duplicate element insertion.