Fixing a silly goof in not using self.lock
Merge pull request #519 from jimi1283/issue_510

Fixing a silly goof in not using self.lock