Avoid sending mails twice via concurrent background processes.