Don't stop child watcher unless in main thread.

libev is using a global variable to store child watcher, this will make
all child watcheres stop working when one thread frees its loop. This is
fucking ridiculous.
Store per thread's loop in tls.