Fixed e-mails being sent for all series instead of only changed ones; added a mutex to thumbnail generation