posix_spawn: add chdir-related non-portable actions
(cherry picked from commit 25cda42a498101612687b32005856cd8b14f2f7a)