Use partially synchronized map in Event hasAnnotation cache.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>