Ported Lock.pm to ObjectManager and let it use Cache instead of CacheInternal.