Added thread-locking in ObjectCacheAdapter