CDF is locking on "this" while RAMDirectoryFactory and MockDirectoryFactory are locking on "DirectoryFactory.class".