Fix issue where worker hangs up startup.

See https://github.com/celery/celery/issues/1847 for more details.