Semaphore or Automatic cleaner - built-in PHP