Problem: under some debuggers, asserts in zsys_close

Valgrind, for instance, delays threads randomly at exit, so the
atexit handler can be called while child threads are still alive
and this leads to assert failures in zsys_close when zactor
tries to close its pipe.

Solution: allow zsys_close() after atexit handler has run.