Threading support is VERY lightly tested, but I doubt it is the problem since it always fails after 31 spawns.
I have tried with these configure options and the same version of Open MPI and have still have been able to replicate this (after letting it spawn over 500 times).