Pass environ to posix_spawn so that the child process can inherit environment of the test. (cherry picked from commit e958490f)