fixed dead lock bug

in golang, we must use pointer to access the same lock