Attached patch changes t/stress.t such that it more robustly handles thread creation failures due to 'no more processes', 'out of memory', etc.. Such failures are not indicative of problems with the 'threads::shared' module.