move Lock.token attribute into thread-local storage
lock tests: change lock.token to lock.local.token
Merge pull request #491 from dystedium/fixlock3

move Lock.token attribute into thread-local storage