Fixes a synchronization issue in @unconfirmed_set

Fixes #206
Merge pull request #207 from nviennot/master

Fixes a synchronization issue in @unconfirmed_set