Fix for celery.utils.threads.Event. Re #1354