CURL SSL lock/unlock added