Our testing found that the change r294214 has one issue with offload corner-case tests those have the code fragment:
#pragma omp target teams if(target:0)
{
}
where intermittent hang observed. Investigation showed that when master thread executes spin loop waiting for SAFE reap state of the worker thread this worker may be sleeping on a fork barrier. The solution for the problem is to check the flag the worker thread sleeps on, and resume the worker if needed so that it can mark itself as SAFE to reap.