Removing the code that manipulates idsets in a new transaction, and add in more comprehensive synchronization around the currentIdSet