added locking in order to avoid running two scripts for the same cache in parallel
added locking in order to avoid running two scripts for the same cache in parallel

manuelkiessling/php-restful-subversion,manuelkiessling/php-restful-subversion,manuelkiessling/php-restful-subversion