added new locking in the drupal queue processing