add a lock around the creation of the autoloader cache so that only one

instance will build the cache