<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove(self, item):
 """ Remove an item from the set, returning if it was present """

        with self.lock:
            if item in self.set:
                self.set.remove(item)
                return True
            return False