fix lock scope

lock can take 0 arguments, defaulting to true
Merge pull request #29 from ccutrer/lock

fix lock scope