CRM-12395

----------------------------------------
* CRM-12395: Add database locks to all potentially long running jobs
  http://issues.civicrm.org/jira/browse/CRM-12395