Lock source poll

Make source polling thread safe to ensure that a message cannot be added twice (resulting in two docids for the same message id). Hopefully fixes issue #68.