Patch #711835: Remove unnecessary lock operations. Will backport to 2.2.
Patch #711835: Remove unnecessary lock operations. Will backport to 2.2.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator