Fixed bugs when delegates add/cancel requests from delegate callbacks

Fixed bugs where callbacks via delegates or blocks could cause a crash since these might modify the downloaders, downloadInfo or downloadDelegates arrays if adding a new download request or canceling one from these.

https://github.com/rs/SDWebImage/pull/139
format the code to the right indentation.
Fix code format