Fixes deadlock when user call operations inside listeners
Merge pull request #2979 from sancar/fix/clientDeadLock/maint3.x

Fixes deadlock when user call operations inside listeners