Wrap the singleton caches using the Collections.synchronize methods

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>