In some scenarios, we can have a daemon sharing the node with mpirun. In those cases, we need to avoid race conditions in cleanup Signed-off-by: Ralph Castain <rhc@open-mpi.org> (cherry picked from commit 8d1be27a1e98940e21e87b75251f6996668490bc)