Improve retry strategy when sending/receiving messages to service bus queues

Fixes https://github.com/codalab/codalab/issues/471.