Pass obj with lock by reference.  Methods->funcs.
Fixes "lock passed by value" issues raised by "go vet".
Merge pull request #903 from erictune/cleanup4

Pass obj with lock by reference.