Not quite ready for master, but needs some of the changes in multi.

* Release global lock while curl is doin' it's thing so other Ruby code can run.