Ensure MessageTreeImpl#contains() is thread-safe
Spotted an unsynchronized method while looking at this class. Also added thread-safety annotations and fixed a lint warning.
Spotted an unsynchronized method while looking at this class. Also added thread-safety annotations and fixed a lint warning.