To have effect, @deprecated needs to be an annotation.
Merge pull request #3786 from tvierling/deprecate-fixes-2.11.x

Deprecate AVLTree and concurrent.Lock in 2.11.2