Add cache-based locking to subtasks to ensure that the same task is not running in two workers at the same time.
Merge pull request #1438 from edx/brian/lock-email-task

Add cache-based locking to subtasks to ensure that the same task is not ...