Fix lock that should be on the lock object rather than on 'this'.