spawn2: Fix crashes when starting too many children in P_2_THREADSAFE mode.
spawn2: Fix crashes when starting too many children in P_2_THREADSAFE mode.

It could happen when starting more than 10 children simultaneously.

Needed for #78.

bitwiseworks/libcx,bitwiseworks/libcx