change usage of lock(this)

change usage of lock(this) to private class member to help avoid thread contention.