[ThreadLocalDBCache] Return a reference instead of a pointer.

The returned matter is alywas not NULL. So a reference is suitable.