Made responseHandlers thread safe.

responseHandlers can be accessed from a non-main thread when the NSURLProtocol is used. It needs to be guarded by a monitor.