Protect key handler map with a mutex (#2053)
Protect key handler map with a mutex (#2053)

This fixes a race condition when multiple threads access methods in the
keys package.
AlCutter/trillian,AlCutter/trillian,google/trillian,gdbelvin/trillian,gdbelvin/trillian,google/trillian,gdbelvin/trillian