Fix hang of t/9.t on FreeBSD/NetBSD perls not built with "-pthread"

Glib's child watches will not work when perl was not linked with "-pthread".

https://rt.cpan.org/Ticket/Display.html?id=82349