expose toThunk

`toThunk` is powerful when writing some co libraries. 

in [co-any](https://github.com/dead-horse/co-any). i had to copy these code from `co`

expose it and make everybody can use it.