Merge pull request #491 from dystedium/fixlock3

move Lock.token attribute into thread-local storage