Swap MessageCache::get closure to global function to fix segfault

Stopping Database Dumps from running

Change-Id: I1b34716cd981acc72ab4f3ad0036620fb1d56a58
(cherry picked from commit 51cef005cdf6d477fe95149490aa9396231f91df)