Allow JOIN to loop on running a thread if trapped.

Only loops a certain number of times -- currently defaulted to 4
because it seems like JOIN should be either limited or unlimited rather
than just ignoring the trap.