Fixing a silly goof in not using self.lock