add sync lock to protect proxyGoose, which is a shared resource accessed by multiple threads.