Make the Sweeper implementation thread safe